package com.gem.day07;

import com.gem.day06.extend2.Shape;

public class ShapeService {
	/**
	 * 计算形状周长
	 */
	public void calcLength(Shape shape) {
		System.out.println(shape.length());
	}

	/**
	 * 计算形状面积
	 */
	public void calcArea(Shape shape) {
		System.out.println(shape.area());
	}
}
